<%@page pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table width='100%' height='31' border='0' cellspacing='0'
		cellpadding='0'>
	<tr>
		<td width='40'
			background='${pageContext.request.contextPath}/common/images/index_26.jpg'>&nbsp;
			
		</td>
		<!--内容区导航开始-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<span class="channel_title">图书分类管理
				<span style="color:#000;"> >> 删除类型信息  >></span> </span></td>
		<!--内容区导航结束-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>&nbsp;
			
		</td>
		<td width='13' align='right' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<img src="${pageContext.request.contextPath}/common/images/ctitle_bak_right.jpg" height="31" width="10">
		</td>
	</tr>
</table>

<table width='100%' border='0' cellspacing='0' cellpadding='0'>
	<tr height="10%">
		<td align="left" height='31' background='${pageContext.request.contextPath}/common/images/ctitle_bak_fcenter.jpg'>
			<form action="${pageContext.request.contextPath}/sysManage/typeManage/type.do?method=remove_show" method="post">
				<span style="fond-size:12px">查询条件：&nbsp;</span>
				<span style="fond-size:12px">分类名:</span><input type="text" id="typeName" name="typeName" style="WIDTH:80px">
				<span style="fond-size:12px">父类名：</span>
				<select id="p_id" name="p_id">
				<option value="-1"></option>
				<option value="0">无父类</option>
				<c:forEach items="${pbookTypes}" var="booktype">
					<option value="${booktype.id}">${booktype.typeName}</option>
				</c:forEach>
			</select>
				<input type="submit" value="查询">
			</form>	
		</td>		
	</tr>
	
	<tr height="285px">
		<td width="100%" valign="top">				
			<div style="overflow:auto;">			
				<table cellspacing='0' cellpadding='0' width="100%"  border="1">				
					<table cellspacing='0' cellpadding='0' width="100%"  border="1">				
					<tr class="tabhead">
						<th>序    号</th>						
						<th>分类名</th>
						<th>父类名</th>
						<th>操    作</th>
					</tr>
					<c:forEach items="${allBookTypes}" var="booktype"  varStatus="loopStatus">
						<tr>	
							<td align="center">${loopStatus.count+(thisPage-1)*10}</td>						
							<td align="center">${booktype.typeName}</td>
							<td align="center">
								<c:forEach items="${pbookTypes}" var="pbooktype">
									<c:if test="${booktype.p_id==pbooktype.id}">						
										<span>${pbooktype.typeName}</span>
									</c:if>
								</c:forEach>
							</td>
							<td align="center" width="40%">
										<a href="${pageContext.request.contextPath}/sysManage/typeManage/type.do?method=remove&id=${booktype.id}">删除 </a>
								</td>
							</tr>
					</c:forEach>
				</table>
			</div>
		</td>
	</tr>
	<tr height="20px" align="right">
		<td>
			第${thisPage}页/共${allPage}页&nbsp;&nbsp;
			<a href="${pageContext.request.contextPath}/sysManage/typeManage/type.do?method=remove_show&pages=first&p_id=${p_id}&typeName=${typeName}&tPage=${thisPage}">|第一页</a>|
			<a href="${pageContext.request.contextPath}/sysManage/typeManage/type.do?method=remove_show&pages=previous&p_id=${p_id}&typeName=${typeName}&tPage=${thisPage}">上一页</a>|
			<a href="${pageContext.request.contextPath}/sysManage/typeManage/type.do?method=remove_show&pages=next&p_id=${p_id}&typeName=${typeName}&tPage=${thisPage}">下一页</a>|
			<a href="${pageContext.request.contextPath}/sysManage/typeManage/type.do?method=remove_show&pages=last&p_id=${p_id}&typeName=${typeName}&tPage=${thisPage}">最后一页</a>|
		</td>	
	</tr>
	
</table>
